<div class="form">


<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'familiar-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">
		Los campos con <span class="required">*</span> son obligatorios.
	</p>
	
	

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'nombres'); ?>
		<?php echo $form->textField($model,'nombres',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'nombres'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'apellido_paterno'); ?>
		<?php echo $form->textField($model,'apellido_paterno',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'apellido_paterno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'apellido_materno'); ?>
		<?php echo $form->textField($model,'apellido_materno',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'apellido_materno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'run'); ?>
		<?php $this->widget('CMaskedTextField',array(
		'model'=>$model,
		'attribute'=>'run',
		    'name'=>'run',
		    'mask'=>'99.999.999-*',
		    'htmlOptions'=>array(
		        'size'=>12
		),
		));?>
		<?php echo $form->error($model,'run'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nivel_estudios'); ?>
		<?php echo $form->textField($model,'nivel_estudios',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'nivel_estudios'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'actividad'); ?>
		<?php echo $form->textField($model,'actividad',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'actividad'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'apoderado'); ?>
		<?php echo $form->dropDownList($model,'apoderado',array(1=>"Si",0=>"No")); ?>
		<?php echo $form->error($model,'apoderado'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'parentezco'); ?>
		<?php echo $form->textField($model,'parentezco',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'parentezco'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'direccion'); ?>
		<?php echo $form->textField($model,'direccion',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'direccion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'telefono'); ?>
		<?php echo $form->textField($model,'telefono',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'telefono'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div>
<!-- form -->
